import request from '@/utils/request'

export default {
  pmList(params) {
    return request({
      url: '/v1/pmList?plan4=4',
      method: 'get',
      params
    })
  },
  getOne(id) {
    return request({
      url: `/v1/pm/${id}`,
      method: 'get'
    })
  },
  update(data) {
    return request({
      url: '/v1/pmUpdate',
      method: 'post',
      data
    })
  },
  archives(data) {
    return request({
      url: `/v1/pmRemoveOrder`,
      method: 'post',
      data
    })
  },
  adminStop(data) {
    return request({
      url: `/v1/pmRemoveSure`,
      method: 'post',
      data
    })
  },
  adminNotStop(data) {
    return request({
      url: `/v1/pmRemoveNotSure`,
      method: 'post',
      data
    })
  },
  delete(id) {
    return request({
      url: `/v1/pmDel/${id}`,
      method: 'get'
    })
  },
  review(data) {
    return request({
      url: '/v1/pmReview',
      method: 'post',
      data
    })
  },
  submitReading(data) {
    return request({
      url: '/v1/pmSubmitReading',
      method: 'post',
      data
    })
  }
}
